#include <CommandRotate.h>
Inheritance diagram for CommandRotate:

Public Member Functions | |
| CommandRotate (float angle, OSGWindows *osgwind) | |
| CommandRotate (float angle, OSGWindows *osgwind, TraffEduObject *obj) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | rotatedObjs_ |
| float | angle_ |
| int | rightCLK |
| TraffEduObject * | obj_ |
|
||||||||||||
|
A constructor. Initializes osgwind_ and rightCLK variables. It is called if the rotation operation is done from the menubar.
|
|
||||||||||||||||
|
A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the rotation operation is done from the menubar.
|
|
|
do the rotation operation.
Implements Command. |
|
|
undo the rotation operation.
Implements Command. |
|
|
a private variable. It shows how much the selected objects are rotated. |
|
|
a private variable. It is used to hold the rotated object. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
|
|
a private variable. It shows if the CommandRotate is called from the RightClickMenu or not. |
|
|
a private vector of TraffEduObjects. It holds the rotated objects. |
1.4.6-NO